package com.lds.register.center.server.business.cluster.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lds.register.center.server.business.cluster.entity.Cluster;
import org.apache.ibatis.annotations.Select;

/**
 * Mapper 接口
 *
 * @author lidongsheng
 * @since 2025-06-26
 */
public interface ClusterMapper extends BaseMapper<Cluster> {

    @Select("select id from cluster where env_id = #{envId} and name = #{name}")
    Long getClusterIdByEnvIdAndName(Long envId, String name);
}

